import { _decorator } from "cc";
import { IWoodController } from "../../controller/scene/IWoodController";
import GameConst from "../../GameConst";
import { IClick } from "../IClick";

const { ccclass, property } = _decorator;


@ccclass('IWoodClick')
export class IWoodClick extends IClick {

    @property({type:IWoodController,displayName:"控制器"})
    iWood:IWoodController;

    event(){
        console.log("点击木材");
        this.iWood.rServerEvent("onPickup",GameConst.getUserId());
    }

}
